package com.lai.shop.service;


import com.baomidou.mybatisplus.extension.service.IService;

import com.lai.shop.entity.CategoryEntity;
import com.lai.shop.utils.PageUtils;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author laiciqi
 * @email 602469238@qq.com
 * @date 2022-05-19 13:16:52
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 以树形结构组装全部分类
     * @return
     */
    List<CategoryEntity> listTree();

    /**
     * 找出传入的分类id的全路径
     * @param id
     * @return
     */
    Long[] findCategoryPath(Long id);
}

